Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.
...Python decorators from Java annotations and .Net attributes, which are significantly different beasts. Robert Brewer wrote a detailed proposal for this form, and Michael Sparks produced a patch. As noted previously, Guido rejected this form, outlining his problems with it in a message to python-dev and comp.lang.python. Examples Much of the discussion on comp.lang.python and the python-dev mailing list focuses on the use of decorators as a cleaner way to use the staticmethod() and classmetho...
...Python, since the effectiveness of Ruby's blocks relies heavily on various conventions in the way functions are defined (specifically, using Ruby's yield syntax to call blocks directly and the &arg mechanism to accept a block as a function's final argument). Since Python has relied on named functions for so long, the signatures of APIs that accept callbacks are far more diverse, thus requiring a solution that allows one-shot functions to be slotted in at the appropriate location. The approac...
26 May from 4:30pm UTC to 6pm UTC, 2021
Location: Online
An introduction to Web Scraping with Python and Azure Functions
...python.org>, Jiwon Seo <seojiwon at gmail.com>, Yury Selivanov <yury at edgedb.com>, Larry Hastings <larry at hastings.org> Status:Final Type:Standards Track Created:21-Aug-2006 Python-Version:3.3 Post-History:04-Jun-2012 Resolution:https://mail.python.org/pipermail/python-dev/2012-June/120682.html Contents Abstract Signature Object Parameter Object BoundArguments Object Implementation Design Considerations No implicit caching of Signature objects Some functions ...
...functions may be set to NULL, but it is strongly recommended to implement the releaselockedbufferproc function (even if it does nothing) if any of the acquireread/writelockedbufferproc functions are implemented, to discourage extension writers from checking for a NULL value and not calling it. These functions aren't supposed to be called directly, they are called through convenience functions declared in Include/abstract.h: int PyObject_AcquireLockedReadBuffer(PyObject *obj, ...
...python.org/pipermail/python-dev/2018-June/153938.html https://mail.python.org/pipermail/python-dev/2018-June/153984.html https://mail.python.org/pipermail/python-dev/2018-July/154238.html https://mail.python.org/pipermail/python-dev/2018-July/154470.html https://mail.python.org/pipermail/python-dev/2018-July/154571.html https://mail.python.org/pipermail/python-dev/2018-September/155166.html https://mail.python.org/pipermail/python-dev/2018-October/155403.html https://mail.python.org/pipermail/py...
...Python-Version:3.7 Resolution:https://mail.python.org/pipermail/python-dev/2017-October/150046.html Contents Abstract Rationale Float type limited to 104 days Previous rejected PEP Issues caused by precision loss Example 1: measure time delta in long-running process Example 2: compare times with different resolution CPython enhancements of the last 5 years Existing Python APIs using nanoseconds as int Changes New functions Unchanged functions Alternatives and discussion Sub-nanoseco...
...Python, and yield is a control construct. It's also believed that efficient implementation in Jython requires that the compiler be able to determine potential suspension points at compile-time, and a new keyword makes that easy. The CPython reference implementation also exploits it heavily, to detect which functions are generator-functions (although a new keyword in place of def would solve that for CPython -- but people asking the "why a new keyword?" question don't want any new keyword). T...
...Python memory allocators PEP:445 Title:Add new APIs to customize Python memory allocators Author:Victor Stinner <vstinner at python.org> BDFL-Delegate:Antoine Pitrou <solipsis at pitrou.net> Status:Final Type:Standards Track Created:15-Jun-2013 Python-Version:3.4 Resolution:https://mail.python.org/pipermail/python-dev/2013-July/127222.html Contents Abstract Rationale Proposal New Functions and Structures Redesign Debug Checks on Memory Block Allocators as Hooks Do...
...python.org/pipermail/python-dev/2019-March/156695.html Contents Abstract Rationale Implementation Backwards Compatibility Copyright Abstract Function definitions only allow simple function names to be used, even though functions are assignable first class objects. This PEP proposes adding support for assigning a function to a class or instance attribute directly in the function definition's header by using the dot notation to separate the object from the function's name. Although a simi...
...python.org/pipermail/python-dev/2013-August/128087.html [2]https://mail.python.org/pipermail/python-dev/2013-August/128101.html [3]https://github.com/encukou/cpython/commits/pep489 [4]https://github.com/encukou/cpython/compare/master...encukou:pep489.patch [5]https://mail.python.org/pipermail/import-sig/2015-April/000959.html [6]https://docs.python.org/3/c-api/init.html#sub-interpreter-support Copyright This document has been placed in the public domain. Source: htt...
...functions PEP:3152 Title:Cofunctions Author:Gregory Ewing <greg.ewing at canterbury.ac.nz> Status:Rejected Type:Standards Track Created:13-Feb-2009 Python-Version:3.3 Post-History: Contents Abstract Rejection Specification Cofunction definitions Cocalls New builtins, attributes and C API functions Motivation and Rationale Prototype Implementation Copyright Abstract A syntax is proposed for defining and calling a special type of generator called a 'cofunction'. It...
...python.org/issue42197) [10]python-dev thread: Resurrecting PEP 558 (Defined semantics for locals()) (https://mail.python.org/archives/list/python-dev@python.org/thread/TUQOEWQSCQZPUDV2UFFKQ3C3I4WGFPAJ/) [11]python-dev thread: Comments on PEP 558 (https://mail.python.org/archives/list/python-dev@python.org/thread/A3UN4DGBCOB45STE6AQBITJFW6UZE43O/) [12]python-dev thread: More comments on PEP 558 (https://mail.python.org/archives/list/python-dev@python.org/thread/7TKPMD5LHCBXGFUIMKDA...
...functions PEP:3155 Title:Qualified name for classes and functions Author:Antoine Pitrou <solipsis at pitrou.net> Status:Final Type:Standards Track Created:29-Oct-2011 Python-Version:3.3 Post-History: Resolution:https://mail.python.org/pipermail/python-dev/2011-November/114545.html Contents Rationale Proposal Example with nested classes Example with nested functions Limitations Discussion Excluding the module name Reviving unbound methods Naming choice References Cop...
...Python 3000 https://mail.python.org/pipermail/edu-sig/2006-September/006967.html [3]Educational aspects of Python 3000 https://mail.python.org/pipermail/python-3000/2006-September/003589.html [4]Rationale for going with the straight renaming https://mail.python.org/pipermail/python-3000/2006-December/005249.html [5]BDFL acceptance of the PEP https://mail.python.org/pipermail/python-3000/2006-December/005257.html Copyright This document has been placed in the public domain. So...
...Python memory allocations PEP:454 Title:Add a new tracemalloc module to trace Python memory allocations Author:Victor Stinner <vstinner at python.org> BDFL-Delegate:Charles-François Natali <cf.natali at gmail.com> Status:Final Type:Standards Track Created:03-Sep-2013 Python-Version:3.4 Resolution:https://mail.python.org/pipermail/python-dev/2013-November/130491.html Contents Abstract Rationale Proposal API Functions Filter Frame Snapshot Statistic StatisticDiff Tr...
...python.org/issue18986. Existing work Case-insensitive dicts are a popular request: http://twistedmatrix.com/documents/current/api/twisted.python.util.InsensitiveDict.html https://mail.python.org/pipermail/python-list/2013-May/647243.html https://mail.python.org/pipermail/python-list/2005-April/296208.html https://mail.python.org/pipermail/python-list/2004-June/241748.html http://bugs.python.org/msg197376 http://stackoverflow.com/a/2082169 http://stackoverflow.com/a/3296782 http://code.actives...
...Python Compiler-SIG http://www.python.org/sigs/compiler-sig/ [2]Parser Module Documentation http://docs.python.org/library/parser.html [3]Hylton, Jeremy. http://docs.python.org/library/compiler.html [4]Pelletier, Michel. "Python Interface Syntax", PEP 245 [5]The Python Types-SIG http://www.python.org/sigs/types-sig/ Copyright This document has been placed in the public domain. Source: https://github.com/python/peps/blob/master/pep-0269.txt
...python.org>, Barry Warsaw <barry at python.org> Status:Active Type:Process Created:05-Jul-2001 Post-History: Contents Introduction C dialect Code lay-out Naming conventions Documentation Strings Copyright Introduction This document gives coding conventions for the C code comprising the C implementation of Python. Please see the companion informational PEP describing style guidelines for Python code. Note, rules are there to be broken. Two good reasons to break a particula...
...Python prior to 2.4a2 would leave a broken module in sys.modules - subsequent attempts to import the failing module would silently succeed, but use the broken module object. The import machinery now removes the failing module from sys.modules if the import fails. The -m command line option - python -m modulename will find a module in the standard library, and invoke it. For example, python -m pdb is equivalent to python /usr/lib/python2.4/pdb.py New or upgraded built-ins built-in sets - th...